package com.sy.structural.adapter.obj;

import com.sy.structural.adapter.MoviePlayer;
import com.sy.structural.adapter.Player;
import com.sy.structural.adapter.clazz.JPMoviePlayerAdapter;

public class MainTest {

    public static void main(String[] args) {
        Player player = new MoviePlayer();
        JPMoviePlayerAdapter jpMoviePlayerAdapter = new JPMoviePlayerAdapter(player);
        String context = jpMoviePlayerAdapter.play();
        System.out.println(context);
    }
}
